package cn.neusoft.edu.his.demo.controller;

import cn.neusoft.edu.his.demo.common.Result;
import cn.neusoft.edu.his.demo.mapper.RegistrationMapper;
import cn.neusoft.edu.his.demo.po.Doctor;
import cn.neusoft.edu.his.demo.po.Registration;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@Api("RegistrationController相关的api")
@RestController
public class RegistrationController {
    @Autowired
    private RegistrationMapper registrationMapper;
    
    @RequestMapping("/getRegistration")
    public Result registration(Registration registration){
        List<Registration> list=registrationMapper.getRegistration(registration);
        return Result.ok(list);
    }

}